package com.lx.pc.restful.broadcast;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.lx.pc.service.broadcast.IBroadcastService;

@Controller
@RequestMapping("/broadcast")
public class BroadcastController {

	@Resource(name = "broadcastService")
	private IBroadcastService broadcastService;
	
	/**
     * 搜索
     * 
     * @param account
     * @param size
     * @param page
     * @return
     */
	@RequestMapping("/toList.do")
	public ModelAndView search(Integer size, Integer page) {
		
		ModelAndView mv = new ModelAndView("broadcast/index");
//        if (size == null || size < 10) {
//            size = 10;
//        }
//        BroadcastVo v = new BroadcastVo();
//
//        if (page == null || page < 0) {
//            page = 1;
//        }
//
//        OmsPage<BroadcastVo> pages = broadcastService.findByBroadcast(v, page = (page - 1) * size, size);
//        Map<String, Object> result = new HashMap<String, Object>();
//        result.put("count", pages.getTotal());
//        result.put("data", pages.getResult());
        return mv;
    }
	
}
